package com.GroupSix.vo;

import com.GroupSix.tool.ArrayIntegerTypeHandler;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

@Data
public class PaperGenerationRuleVo {
    //规则id
    @TableId(type= IdType.AUTO)
    private Long id;
    //课程id
    private Integer courseId;
    //知识点列表
    @TableField(typeHandler = ArrayIntegerTypeHandler.class)
    private Integer[] knowledgePoint;
    //题型和对应数量
    private Map<Integer, Integer> questionTypeCount;
    //单题分值
    private Integer score;
    //难易程度列表
    private Integer difficultyLevel;
    //考试开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime paperStart;
    //时间限制
    private Integer timeLimit;
    //是否可用
    private Integer isActive;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //当前页数
    private Integer curPage;
    //每页数据上限
    private Integer pageSize;
}
